﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Speech声音TTS.aspx.cs" Inherits="SpeechTTS" Async="true" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Speech声音TTS</title>
    <script src="js组件/jquery/jquery-latest-pack.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        </div>
        <div id="aa"><%=gui %></div>
        <audio src="?g=<%=gui %>&s=t" autoplay="true" onabort="alert('出错')" onended="alert('完成')"></audio>
        <audio id="audio" controls="true" autoplay="true">
            <source src="?g=<%=gui %>&s=t">
            <%--<source src="/i/song.mp3" type="audio/mpeg"> type="audio/wav"--%>
            Your browser does not support the audio element.
        </audio>
        <div id="cc"></div>
        <a id="ac">获取</a>
    </form>
    <script type="text/javascript">
        var val = $("#aa").html();
        //setInterval(function () {
        //    jQuery.get("?", { s: 't', g: val }), function () {
        //}}, 8000);
        // $("audio").eq(0).attr("src", "?g=" + val + "&s=t");
        $("#cc").html($("audio").eq(0).attr("src"));
        $("#ac").attr("href", $("audio").eq(0).attr("src"));
    </script>
</body>
</html>
